<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewThreadPage.ascx.cs" Inherits="forums_controls_threads_NewThreadPage" %>
<%@ Register Src="../../../controls/misc/FCKEditor.ascx" TagName="FCKEditor" TagPrefix="uc4" %>
<%@ Register Src="../misc/Header.ascx" TagName="Header" TagPrefix="uc3" %>
<%@ Register Src="../posts/PreviewPost.ascx" TagName="PreviewPost" TagPrefix="uc2" %>
<%@ Register Src="../forums/breadcrumb.ascx" TagName="breadcrumb" TagPrefix="uc1" %>

<uc3:Header ID="Header1" runat="server" />
<div class="forum_postbox">
<asp:MultiView ID="mviewThread" runat="server">
    <asp:View ID="viewThread" runat="server">
        <uc2:PreviewPost ID="PreviewPost1" runat="server" />
        <p>
        Subject:
            <br />
        <asp:TextBox runat="server" ID="txtSubject" Width="300px" MaxLength="100" />
            <asp:RequiredFieldValidator ID="valSubjectRequired" runat="server" ControlToValidate="txtSubject"
                EnableClientScript="False" ErrorMessage="You can't submit a thread without a subject."
                ValidationGroup="NewThread"></asp:RequiredFieldValidator></p>
        <p>
        Post:<br />
        <uc4:FCKEditor ID="txtPost" runat="server" Height="500px" Width="700px"/>
        </p>
        <p>
        <asp:Button runat="server" ID="btnSubmit" Text="Post" OnClick="btnSubmit_Click" ValidationGroup="NewThread" />
            <asp:Button ID="btnPreview" runat="server" OnClick="btnPreview_Click" Text="Preview" /></p>
    </asp:View>
    <asp:View ID="viewNoForum" runat="server">
        Forum not found.
    </asp:View>
</asp:MultiView>
</div>